using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows.Forms;
using THSERP.BusinessEntities;
using THSERP.BaseProvider;
namespace THSERP.Modules.PurchaseOrder
{
    public partial class APPurchaseOrderItemsGridControl : THSGridControl
    {
        public APPurchaseOrderItemsGridControl()
        {
            InitializeComponent();
        }

        public APPurchaseOrderItemsGridControl(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        public override void InitGridControlDataSource()
        {
            //base.InitGridControlDataSource();
            PurchaseOrderEntities entity = (PurchaseOrderEntities)((BaseModuleERP)Screen.Module).CurrentModuleEntity;
            BindingSource bds = new BindingSource();
            bds.DataSource = entity.APPurchaseOrderItemsList;
            this.DataSource = bds;
        }
    }
}
